package com.kai.base.base.activity

import android.view.View
import androidx.viewbinding.ViewBinding

/**
 * @Author: 小强同学
 * @Date: 2021/1/26 16:15
 * @Description:  ViewBinding 布局与控件绑定
 */
abstract class BaseVBActivity<VB : ViewBinding> : BaseActivity() {

    protected lateinit var mBaseActViewBind: VB

    override fun initPre() {
        super.initPre()
        mBaseActViewBind = getViewBinding()
    }

    override fun getLayoutResID(): View =mBaseActViewBind.root

    abstract fun getViewBinding(): VB
}